<?php

class parametro_control extends object_standard {

    //attribute variables 
    protected $codigo;
    protected $nombre;
    protected $descripcion;
    protected $estado;
    protected $codigo_modelo;
    

    //components 
    var $components = array();
    //auxiliars for primary key and for files 
    var $auxiliars = array();

    //data about the attributes 
   public function metadata() {
        return array("codigo" => array(), "nombre" => array(), "descripcion" => array(), "estado" => array(),
            "codigo_modelo" => array("foreign_name" => "m_pc", "foreign" => "modelo", "foreign_attribute" => "codigo"));
    }

    public function primary_key() {
        return array("codigo");
    }

    public function relational_keys($class, $rel_name) {
        switch ($class) {
            case "modelo":
                switch ($rel_name) {
                    case "m_pc":
                        return array("codigo_modelo");
                        break;
                }
                break;

            default:
                break;
        }
    }
/*
    public function aumento() {
        return $this->salary * 1.1;
    }
*/
}

?>